<?php
/*
 * This is pregnancy's ultrasound last menu.
 */
$rp = $_SERVER['REQUEST_URI'];
?>
<head>
    <style>
        #dl{padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
    </style>
</head>
<script>
    $(function(){
       
        $('#dl').click(function(){
            $('#dialog').dialog('open');
            return false;
        });
       
        $('#dialog').dialog({
            width : 400,
            height : 250,
            modal : true,
            autoOpen : false,
            buttons: {                      
                      
            }
        });
      

    });
</script>
<p>Ultrasound comes from a machine that creates an image of the inside of your body. It shows what your baby looks like while still inside your womb (uterus).
    Ultrasound can tell you—and your health-care provider—many things about your baby, such as:</p>
<ul>
    <li> the size of the baby</li>
    <li> how well the baby’s heart works</li>
    <li> how well other organs (such as the spine, brain and kidneys) are growing</li>
    <li> the anticipated date of birth</li>
</ul>

<p>The moving pictures from the ultrasound machine are like a movie. The pictures appear on a computer screen.
    An ultrasound can help to check on many aspects of a healthy pregnancy, such as:</p>
<ul>
    <li> the number of babies</li>
    <li> whether the baby ’s size is right for his/her age</li>
    <li> how the baby’s internal organs are growing</li>
    <li> whether the placenta (afterbirth) is in the correct place</li>
    <li> whether there are problems with the mother's uterus, fallopian tubes or ovaries</li>
</ul>


<center><p><a href="#" id="dl" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
<div id="dialog" title="Upload Documents"  >
    <p>
    <form enctype="multipart/form-data" action="../../plugins/upload_file.php" method="POST">
        <input type="hidden" name="MAX_FILE_SIZE" value="100000000000" />
        <input type="hidden" name="path" value="../storage/pregnancy/" />
        <input type="hidden" name="rp" value="<?php echo $rp; ?>" />
        <input type="hidden" name="mdir" value="pregnancy" />
        <input type="hidden" name="bid" value="<?=$_COOKIE['bid']?>"/>
        <input type="hidden" name="attr" value="Ultrasound"/>
        <input type="file" name="uploadedfile" required />        
        <input type="submit" value="Upload File" />
    </form>

</p>
</div>
<?php
if ($_GET['s'] == y) {
    ?>
    <script>
        $(function(){
                
            $('#dl0').dialog({
                width : 200,
                modal : true
            });

        });
    </script>
    <div id="dl0" title="Successfull">
        <p>SuccessFull</p>
    </div>
    <?php
} elseif ($_GET['s'] == n) {
    ?>
    <script>
        $(function(){
                
            $('#dl00').dialog({
                width : 200,
                modal : true
            });

        });
    </script>
    <div id="dl00" title="Unsuccessful">
        <p>Opps...!!! Got some error :( <br/> Try Again...</p>
    </div>
<?php } ?>